#ifndef DEF_GRIDER_H
#define DEF_GRIDER_H

#include <vector>
#include <SFML/Graphics.hpp>
#include "../common.h"

using namespace std;
using namespace sf;

class grider
{
   public:
      
      grider(RenderWindow* App, int maxWidth = 0, int maxHeight = 0) : App(App), maxWidth(maxWidth), maxHeight(maxHeight) {}
      
      void addSeparator(int x_or_y, bool isVertical, int weight, Color col);
      void genGrid(pix_coord p_left_top, int width, int height, int weight, Color col);
      
      void draw();
      
      pix_coord left_top;
      vector<Shape> line;
      
      static bool Vertical;
      static bool Horizontal;
      
      int maxWidth, maxHeight;
      RenderWindow* App;
};

#endif
